package ${package.Mapper};

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import ${package.Entity}.${entity};
import java.util.List;

/**
 * <p>
 * ${table.comment!} Mapper 接口
 * </p>
 *
 * @author ${author}
 * @since ${date}
 */
public interface ${table.mapperName} extends ${superMapperClass}<${entity}> {

    /**
     * 根据主键查询
     * @param id
     * @return
     */
    ${entity} selectById(@Param("id") Long id);

    /**
     * 根据条件查询
     * @param entity
     * @return
     */
    List<${entity}> selectList(${entity} entity);

    /**
     * 插入
     * @param entity
     * @return
     */
    int insert(${entity} entity);

    /**
     * 更新
     * @param entity
     * @return
     */
    int update(${entity} entity);

    /**
     * 批量插入
     * @param list
     * @return
     */
    int batchInsert(@Param("list") List<${entity}> list);

    /**
     * 批量更新
     * @param list
     * @return
     */
    int batchUpdate(@Param("list") List<${entity}> list);

}
